package cn.middle.remote.serialization;

import cn.middle.remote.exception.SerializationException;

public interface Serialization {
	
	//public <T> T decode(byte[] data,Class<T> clz) throws SerializationException;
	
	public <T> T decode(byte[] data,TypeGenericity<T> t) throws SerializationException;
	
	public byte[] encode(Object obj)throws SerializationException;


}
